package com.ourteam.product.requirement.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-05-03 16:45:20
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class ProductIssueChangeLog implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long producrIssueId;

    /**
     * Attribute producrIssueId Be Seted Falg
     */
    private boolean producrIssueIdSetted = false;

    /**
    * Attribute producrIssueId is Null Falg
    */
    private boolean producrIssueIdNull = false;
    private String beforeChangeStatus;

    /**
     * Attribute beforeChangeStatus Be Seted Falg
     */
    private boolean beforeChangeStatusSetted = false;

    /**
    * Attribute beforeChangeStatus is Null Falg
    */
    private boolean beforeChangeStatusNull = false;
    private String afterChangeStatus;

    /**
     * Attribute afterChangeStatus Be Seted Falg
     */
    private boolean afterChangeStatusSetted = false;

    /**
    * Attribute afterChangeStatus is Null Falg
    */
    private boolean afterChangeStatusNull = false;
    private long operatorId;

    /**
     * Attribute operatorId Be Seted Falg
     */
    private boolean operatorIdSetted = false;

    /**
    * Attribute operatorId is Null Falg
    */
    private boolean operatorIdNull = false;
    private java.util.Date operateTime;

    /**
     * Attribute operateTime Be Seted Falg
     */
    private boolean operateTimeSetted = false;

    /**
    * Attribute operateTime is Null Falg
    */
    private boolean operateTimeNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String operatorName;

    /**
     * Attribute operatorName Be Seted Falg
     */
    private boolean operatorNameSetted = false;

    /**
    * Attribute operatorName is Null Falg
    */
    private boolean operatorNameNull = false;
    private String operatorPhoto;

    /**
     * Attribute operatorPhoto Be Seted Falg
     */
    private boolean operatorPhotoSetted = false;

    /**
    * Attribute operatorPhoto is Null Falg
    */
    private boolean operatorPhotoNull = false;

    public ProductIssueChangeLog() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get producrIssueId
         *
         * @return long
         */
    final public long getProducrIssueId() {
        return producrIssueId;
    }

    /**
     * Set producrIssueId
     *
     * @param long
     */
    final public void setProducrIssueId(long producrIssueId) {
        this.producrIssueId = producrIssueId;

        this.producrIssueIdSetted = true;

        this.setProducrIssueIdNull(false);
    }

    /**
     * Get producrIssueId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isProducrIssueIdSetted() {
        return this.producrIssueIdSetted;
    }

    /**
     * Set producrIssueId Null
     *
     */
    final public void setProducrIssueIdNull() {
        this.producrIssueIdNull = true;
    }

    final public void setProducrIssueIdNull(boolean aNullFlag) {
        this.producrIssueIdNull = aNullFlag;
    }

    final public boolean isProducrIssueIdNull() {
        return this.producrIssueIdNull;
    }

    /**
         * Get beforeChangeStatus
         *
         * @return String
         */
    final public String getBeforeChangeStatus() {
        if (isBeforeChangeStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(beforeChangeStatus);
        }
    }

    /**
     * Set beforeChangeStatus
     *
     * @param String
     */
    final public void setBeforeChangeStatus(String beforeChangeStatus) {
        this.beforeChangeStatus = StringUtils.trim(beforeChangeStatus);

        this.beforeChangeStatusSetted = true;

        this.setBeforeChangeStatusNull(this.beforeChangeStatus == null);
    }

    /**
     * Get beforeChangeStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isBeforeChangeStatusSetted() {
        return this.beforeChangeStatusSetted;
    }

    /**
     * Set beforeChangeStatus Null
     *
     */
    final public void setBeforeChangeStatusNull() {
        this.beforeChangeStatusNull = true;
    }

    final public void setBeforeChangeStatusNull(boolean aNullFlag) {
        this.beforeChangeStatusNull = aNullFlag;
    }

    final public boolean isBeforeChangeStatusNull() {
        return this.beforeChangeStatusNull;
    }

    /**
         * Get afterChangeStatus
         *
         * @return String
         */
    final public String getAfterChangeStatus() {
        if (isAfterChangeStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(afterChangeStatus);
        }
    }

    /**
     * Set afterChangeStatus
     *
     * @param String
     */
    final public void setAfterChangeStatus(String afterChangeStatus) {
        this.afterChangeStatus = StringUtils.trim(afterChangeStatus);

        this.afterChangeStatusSetted = true;

        this.setAfterChangeStatusNull(this.afterChangeStatus == null);
    }

    /**
     * Get afterChangeStatus Has Been Setted
     *
     * @return boolean
     */
    final public boolean isAfterChangeStatusSetted() {
        return this.afterChangeStatusSetted;
    }

    /**
     * Set afterChangeStatus Null
     *
     */
    final public void setAfterChangeStatusNull() {
        this.afterChangeStatusNull = true;
    }

    final public void setAfterChangeStatusNull(boolean aNullFlag) {
        this.afterChangeStatusNull = aNullFlag;
    }

    final public boolean isAfterChangeStatusNull() {
        return this.afterChangeStatusNull;
    }

    /**
         * Get operatorId
         *
         * @return long
         */
    final public long getOperatorId() {
        return operatorId;
    }

    /**
     * Set operatorId
     *
     * @param long
     */
    final public void setOperatorId(long operatorId) {
        this.operatorId = operatorId;

        this.operatorIdSetted = true;

        this.setOperatorIdNull(false);
    }

    /**
     * Get operatorId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOperatorIdSetted() {
        return this.operatorIdSetted;
    }

    /**
     * Set operatorId Null
     *
     */
    final public void setOperatorIdNull() {
        this.operatorIdNull = true;
    }

    final public void setOperatorIdNull(boolean aNullFlag) {
        this.operatorIdNull = aNullFlag;
    }

    final public boolean isOperatorIdNull() {
        return this.operatorIdNull;
    }

    /**
         * Get operateTime
         *
         * @return java.util.Date
         */
    final public java.util.Date getOperateTime() {
        return operateTime;
    }

    /**
     * Set operateTime
     *
     * @param java.util.Date
     */
    final public void setOperateTime(java.util.Date operateTime) {
        this.operateTime = operateTime;

        this.operateTimeSetted = true;

        this.setOperateTimeNull(this.operateTime == null);
    }

    /**
     * Get operateTime Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOperateTimeSetted() {
        return this.operateTimeSetted;
    }

    /**
     * Set operateTime Null
     *
     */
    final public void setOperateTimeNull() {
        this.operateTimeNull = true;
    }

    final public void setOperateTimeNull(boolean aNullFlag) {
        this.operateTimeNull = aNullFlag;
    }

    final public boolean isOperateTimeNull() {
        return this.operateTimeNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get operatorName
         *
         * @return String
         */
    final public String getOperatorName() {
        if (isOperatorNameNull()) {
            return null;
        } else {
            return StringUtils.trim(operatorName);
        }
    }

    /**
     * Set operatorName
     *
     * @param String
     */
    final public void setOperatorName(String operatorName) {
        this.operatorName = StringUtils.trim(operatorName);

        this.operatorNameSetted = true;

        this.setOperatorNameNull(this.operatorName == null);
    }

    /**
     * Get operatorName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOperatorNameSetted() {
        return this.operatorNameSetted;
    }

    /**
     * Set operatorName Null
     *
     */
    final public void setOperatorNameNull() {
        this.operatorNameNull = true;
    }

    final public void setOperatorNameNull(boolean aNullFlag) {
        this.operatorNameNull = aNullFlag;
    }

    final public boolean isOperatorNameNull() {
        return this.operatorNameNull;
    }

    /**
         * Get operatorPhoto
         *
         * @return String
         */
    final public String getOperatorPhoto() {
        if (isOperatorPhotoNull()) {
            return null;
        } else {
            return StringUtils.trim(operatorPhoto);
        }
    }

    /**
     * Set operatorPhoto
     *
     * @param String
     */
    final public void setOperatorPhoto(String operatorPhoto) {
        this.operatorPhoto = StringUtils.trim(operatorPhoto);

        this.operatorPhotoSetted = true;

        this.setOperatorPhotoNull(this.operatorPhoto == null);
    }

    /**
     * Get operatorPhoto Has Been Setted
     *
     * @return boolean
     */
    final public boolean isOperatorPhotoSetted() {
        return this.operatorPhotoSetted;
    }

    /**
     * Set operatorPhoto Null
     *
     */
    final public void setOperatorPhotoNull() {
        this.operatorPhotoNull = true;
    }

    final public void setOperatorPhotoNull(boolean aNullFlag) {
        this.operatorPhotoNull = aNullFlag;
    }

    final public boolean isOperatorPhotoNull() {
        return this.operatorPhotoNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof ProductIssueChangeLog) == false) {
            return false;
        }

        ProductIssueChangeLog other = (ProductIssueChangeLog) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("producrIssueId=");
        buffer.append(this.producrIssueId);

        buffer.append("beforeChangeStatus=");
        buffer.append(this.beforeChangeStatus);

        buffer.append("afterChangeStatus=");
        buffer.append(this.afterChangeStatus);

        buffer.append("operatorId=");
        buffer.append(this.operatorId);

        buffer.append("operateTime=");
        buffer.append(this.operateTime);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("operatorName=");
        buffer.append(this.operatorName);

        buffer.append("operatorPhoto=");
        buffer.append(this.operatorPhoto);

        buffer.append("]");

        return buffer.toString();
    }
}
